/**
 * Created by loso on 2017/3/6.
 */
public class _492_ConstructTheRectangle {
    public static void main(String[] args) {

    }

    public  int[] constructRectangle(int area) {
        int l = (int)Math.sqrt((double)area);
        int w = 0;
        w = area/l;
        while(l * w != area){
            l -= 1;
            w = area / l;
        }
        int[] s = new int[2];
        s[0] = w;
        s[1] = l;
        return s;
    }
}
